<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Spring Batch Reference - Spring Batch - Reference Documentation | Docs4dev</title>
<meta charset="UTF-8">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta name="description" content="A lightweight, comprehensive batch framework designed to enable the development of robust batch applications vital for the daily operations of enterprise systems.">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="HandheldFriendly" content="true">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta property="og:type" content="website">
<meta property="og:title" content="Spring Batch Reference - Spring Batch - Reference Documentation">
<meta property="og:url" content="https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/">
<meta property="og:site_name" content="Docs4dev">
<meta property="og:locale" content="zh_CN">
<meta name="twitter:card" content="A lightweight, comprehensive batch framework designed to enable the development of robust batch applications vital for the daily operations of enterprise systems.">
<meta name="generator" content="Docs4dev template engine">
<link rel="stylesheet" href="static/css/app.min.css">
<link rel="shortcut icon" href="https://www.docs4dev.com/static/images/favicon.ico" type="image/x-icon">
<script async="" src="static/js/js.js"></script>
<script async="" src="static/js/adsbygoogle.js" crossorigin="anonymous"></script>
<script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
      dataLayer.push(arguments);
    }

    gtag('js', new Date());
    gtag('config', 'UA-129571937-1');
  </script>
<link rel="amphtml" href="https://www.docs4dev.com/amp/docs/en/spring-batch/4.1.x/reference/index.html">

<script type="application/ld+json">{"name":null,"headline":"Spring Batch Reference-Spring Batch - Reference Documentation","inLanguage":"en-US","version":"4.1.x","image":"/static/icon/icon-spring-batch.svg","datePublished":"2021-05-20T12:51:01Z","dateCreated":"2021-05-20T12:51:01Z","dateModified":"2021-07-05T14:17:51Z","@context":"https://schema.org/","@type":"APIReference","abstract":"A lightweight, comprehensive batch framework designed to enable the development of robust batch applications vital for the daily operations of enterprise systems."}</script>
</head>
<body>
<div class="book with-summary">
<div class="book-summary">
<div class="logo">
<a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference');" style="color: inherit;">
<img src="static/picture/icon-spring-batch.svg" style="width: 48px; height: 48px;" alt="Logo">
</a>
<b style="color: inherit; margin-left: 8px;">Spring Batch Reference</b>
</div>
<div class="item">
<div>
<label for="version">版本</label>
<select id="version" onchange="onVersionChange(this)">
<option value="3.0.x">3.0.x</option>
<option value="4.1.x" selected="selected">4.1.x</option>
</select>
</div>
<div style="margin-top: 8px;">
<label for="language">语言</label>
<select id="language" onchange="onLangChange(this)" value="en">
<option value="en" selected="selected">English</option>
<option value="zh">中文</option>
</select>
</div>

</div>
<div class="item menus">
<a title="Table of Contents" style="margin-right: 8px;" href="#">
<i class="fa fa-chevron-left"></i>
<span style="margin-left: 2px;">返回目录</span>
</a>
</div>
<nav role="navigation" id="navigation">
<ul class="summary">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/spring-batch-intro.html#spring-batch-intro');" title="Spring Batch Introduction"> Spring Batch Introduction </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/whatsnew.html#whatsNew');" title="What’s new in Spring Batch 4.1"> What’s new in Spring Batch 4.1 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/domain.html#domainLanguageOfBatch');" title="The Domain Language of Batch"> The Domain Language of Batch </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/job.html#configureJob');" title="Configuring and Running a Job"> Configuring and Running a Job </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/step.html#configureStep');" title="Configuring a Step"> Configuring a Step </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/readersAndWriters.html#readersAndWriters');" title="ItemReaders and ItemWriters"> ItemReaders and ItemWriters </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/scalability.html#scalability');" title="Scaling and Parallel Processing"> Scaling and Parallel Processing </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/repeat.html#repeat');" title="Repeat"> Repeat </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/retry.html#retry');" title="Retry"> Retry </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/testing.html#testing');" title="Unit Testing"> Unit Testing </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/common-patterns.html#commonPatterns');" title="Common Patterns"> Common Patterns </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/jsr-352.html#jsr-352');" title="JSR-352 Support"> JSR-352 Support </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/spring-batch-integration.html#springBatchIntegration');" title="Spring Batch Integration"> Spring Batch Integration </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/appendix.html#listOfReadersAndWriters');" title="List of ItemReaders and ItemWriters"> List of ItemReaders and ItemWriters </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/schema-appendix.html#metaDataSchema');" title="Meta-Data Schema"> Meta-Data Schema </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/transaction-appendix.html#transactions');" title="Batch Processing and Transactions"> Batch Processing and Transactions </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/glossary.html#glossary');" title="Glossary"> Glossary </a> </li>
</ul>
</nav>
</div>
<div class="book-body">
<div class="body-inner">
<header class="book-header">
<div class="dropdown pull-right js-toolbar-action">
<a class="btn toggle-dropdown" aria-label="Language" href="#">
<i class="fa fa-globe"></i>
</a>
<div class="dropdown-menu dropdown-left">
<div class="dropdown-caret"><span class="caret-outer"></span><span class="caret-inner"></span></div>
<div class="buttons">
<button class="button size-1" onclick="changeLang('zh_CN')">中文</button>
</div>
<div class="buttons">
<button class="button size-1" onclick="changeLang('en_US')">English</button>
</div>
</div>
</div>
<a class="btn pull-right js-toolbar-action non-mobile" aria-label="Sign up" href="register.html">
<i class="fa fa-sign-in"></i> <span>注册</span>
</a>
<a class="btn pull-right js-toolbar-action non-mobile" aria-label="Sign in" href="register.html">
<i class="fa fa-sign-in"></i>
<span>登录</span>
</a>
<a class="btn pull-left js-toolbar-action btn-summary" href="#"><i class="fa fa-align-justify"></i></a>
<div class="dropdown pull-left font-settings js-toolbar-action">
<a class="btn toggle-dropdown" aria-label="Font Settings" href="#">
 <i class="fa fa-font"></i>
</a>
<div class="dropdown-menu dropdown-right">
<div class="dropdown-caret"><span class="caret-outer"></span><span class="caret-inner"></span></div>
<div class="buttons">
<button class="button size-2 font-reduce">A</button>
<button class="button size-2 font-enlarge">A</button>
</div>
<div class="buttons">
<button class="button size-2 family-serif">Serif</button>
<button class="button size-2 family-sans">Sans</button>
</div>
<div class="buttons">
<button class="button size-3 theme-white">White</button>
<button class="button size-3 theme-sepia">Sepia</button>
<button class="button size-3 theme-night">Night</button>
</div>
</div>
</div>
<a class="btn pull-left js-toolbar-action non-mobile" aria-label="Home" href="en.html">
<i class="fa fa-home"></i> <span>首页</span>
</a>
<a class="btn pull-left js-toolbar-action non-mobile" aria-label="Guide" href="javascript:window.open('https://www.javadoc.org/');">
<i class="fa fa-book"></i> <span>API Docs</span>
</a>
<a class="btn pull-left js-toolbar-action non-mobile" aria-label="Tools" href="index37.html">
<i class="fa fa-gears"></i> <span>工具</span>
</a>
<div class="dropdown pull-left js-toolbar-action mobile">
<a class="btn toggle-dropdown" aria-label="Language" href="#">
<i class="fa fa-chevron-down"></i>
</a>
<div class="dropdown-menu dropdown-right">
<div class="dropdown-caret"><span class="caret-outer"></span><span class="caret-inner"></span></div>
<div class="buttons">
<a class="button size-1" aria-label="Home" href="en.html">
<i class="fa fa-home"></i> <span>首页</span>
</a>
</div>
<div class="buttons">
<a class="button size-1" aria-label="Guide" href="javascript:window.open('https://www.javadoc.org/');">
<i class="fa fa-book"></i> <span>API Docs</span>
</a>
</div>
<div class="buttons">
<a class="button size-1" aria-label="Tools" href="index37.html">
<i class="fa fa-gears"></i> <span>工具</span>
</a>
</div>
</div>
</div>
<div id="autocomplete" class="pull-right"></div>
<span id="toolbar-title"></span>
</header>
<div class="page-wrapper" tabindex="-1" role="main">
<div class="page-inner">
<section class="normal markdown-section">
<div id="content">
<h1>Spring Batch - Reference Documentation</h1>
<div><ins class="adsbygoogle" style="display:block; text-align:center;" data-ad-layout="in-article" data-ad-format="fluid" data-ad-client="ca-pub-6108808167664152" data-ad-slot="6964403648"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
<div><div id="preamble">
<div class="sectionbody">
<div class="paragraph">
<p>Welcome to the Spring Batch reference documentation! This documentation is also available as single <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/index-single.html');">html</a> and <a href="static/file/spring-batch-reference.pdf" target="_blank" rel="noopener noreferrer">pdf <i class="fa fa-external-link"></i></a> documents.</p>
</div>
<div class="paragraph">
<p>The reference documentation is divided into several sections:</p>
</div>
<div class="hdlist">
<table>
<tbody>
<tr>
<td class="hdlist1"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/spring-batch-intro.html#spring-batch-intro');">Spring Batch Introduction</a> </td>
<td class="hdlist2"> <p>Background, usage scenarios and general guidelines.</p> </td>
</tr>
<tr>
<td class="hdlist1"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/whatsnew.html#whatsNew');">What’s new in Spring Batch 4.1</a> </td>
<td class="hdlist2"> <p>New features introduced in version 4.1.</p> </td>
</tr>
<tr>
<td class="hdlist1"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/domain.html#domainLanguageOfBatch');">The Domain Language of Batch</a> </td>
<td class="hdlist2"> <p>Core concepts and abstractions of the Batch domain language.</p> </td>
</tr>
<tr>
<td class="hdlist1"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/job.html#configureJob');">Configuring and Running a Job</a> </td>
<td class="hdlist2"> <p>Job configuration, execution and administration.</p> </td>
</tr>
<tr>
<td class="hdlist1"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/step.html#configureStep');">Configuring a Step</a> </td>
<td class="hdlist2"> <p>Step configuration, different types of steps, controlling step flow.</p> </td>
</tr>
<tr>
<td class="hdlist1"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/readersAndWriters.html#readersAndWriters');">ItemReaders and ItemWriters</a> </td>
<td class="hdlist2"> <p>Item readers and writers interfaces and how to use them.</p> </td>
</tr>
<tr>
<td class="hdlist1"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/scalability.html#scalability');">Scaling and Parallel Processing</a> </td>
<td class="hdlist2"> <p>Multi-threaded steps, parallel steps, remote chunking and partitioning.</p> </td>
</tr>
<tr>
<td class="hdlist1"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/repeat.html#repeat');">Repeat</a> </td>
<td class="hdlist2"> <p>Completion policies and exception handling of repetitive actions.</p> </td>
</tr>
<tr>
<td class="hdlist1"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/retry.html#retry');">Retry</a> </td>
<td class="hdlist2"> <p>Retry and backoff policies of retryable operations.</p> </td>
</tr>
<tr>
<td class="hdlist1"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/testing.html#testing');">Unit Testing</a> </td>
<td class="hdlist2"> <p>Job and Step testing facilities and APIs.</p> </td>
</tr>
<tr>
<td class="hdlist1"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/common-patterns.html#commonPatterns');">Common Patterns</a> </td>
<td class="hdlist2"> <p>Common batch processing patterns and guidelines.</p> </td>
</tr>
<tr>
<td class="hdlist1"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/jsr-352.html#jsr-352');">JSR-352 Support</a> </td>
<td class="hdlist2"> <p>JSR-352 support, similarities and differences with Spring Batch.</p> </td>
</tr>
<tr>
<td class="hdlist1"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/spring-batch-integration.html#springBatchIntegration');">Spring Batch Integration</a> </td>
<td class="hdlist2"> <p>Integration between Spring Batch and Spring Integration projects.</p> </td>
</tr>
</tbody>
</table>
</div>
<div class="paragraph">
<p>The following appendices are available:</p>
</div>
<div class="hdlist">
<table>
<tbody>
<tr>
<td class="hdlist1"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/appendix.html#listOfReadersAndWriters');">List of ItemReaders and ItemWriters</a> </td>
<td class="hdlist2"> <p>List of all item readers and writers provided out-of-the box.</p> </td>
</tr>
<tr>
<td class="hdlist1"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/schema-appendix.html#metaDataSchema');">Meta-Data Schema</a> </td>
<td class="hdlist2"> <p>Core tables used by the Batch domain model.</p> </td>
</tr>
<tr>
<td class="hdlist1"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/transaction-appendix.html#transactions');">Batch Processing and Transactions</a> </td>
<td class="hdlist2"> <p>Transaction boundaries, propagation and isolation levels used in Spring Batch.</p> </td>
</tr>
<tr>
<td class="hdlist1"> <a href="javascript:window.open('https://www.docs4dev.com/docs/en/spring-batch/4.1.x/reference/glossary.html#glossary');">Glossary</a> </td>
<td class="hdlist2"> <p>Glossary of common terms, concepts and vocabulary of the Batch domain.</p> </td>
</tr>
</tbody>
</table>
</div>
<hr>
<div class="paragraph">
<p>Lucas Ward, Dave Syer, Thomas Risberg, Robert Kasanicky, Dan Garrette, Wayne Lund, Michael Minella, Chris Schaefer, Gunnar Hillert, Glenn Renfro, Jay Bryant, Mahmoud Ben Hassine</p>
</div>
<div class="paragraph">
<p>Copyright © 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 Pivotal, Inc. All Rights Reserved.</p>
</div>
<div class="paragraph">
<p>Copies of this document may be made for your own use and for distribution to others, provided that you do not charge any fee for such copies and further provided that each copy contains this Copyright Notice, whether distributed in print or electronically.</p>
</div>
</div>
</div></div>
</div>
</section>
<div class="right-sidebar">
<div class="affix"><ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-6108808167664152" data-ad-slot="3102929424" data-ad-format="auto" data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
</div>
</div>
<div class="ft">
<a href="#toolbar-title" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a>
<footer class="footer">
<div class="footer__container--normal">
<img alt="扫码关注公众号" title="扫码关注公众号" src="static/picture/qr-code.png" width="170" height="170">
<div class="footer__description--normal">
<p class="paragraph footer__author--normal">Docs4dev<sup class="super">&#xAE;</sup>
</p>
<p class="paragraph footer__quote&#45;&#45;normal">
如果你在使用过程中遇到任何问题，可以在 <a href="javascript:window.open('https://github.com/docs4dev/docs4dev-issues');" target="_blank" rel="noopener noreferrer">这里<i class="fa fa-external-link"></i></a> 提issue。
</p>
<div class="footer__main--normal">
<p class="paragraph footer__main__paragraph--normal copyright" style="color: #666 !important;">
<a href="javascript:window.open('https://beian.miit.gov.cn/');">
蜀ICP备14021783号-6
</a>
</p>
<p class="paragraph footer__main__paragraph--normal copyright" style="color: #666 !important;">
Copyright &#xA9; Docs4dev all
right reserved, powered by <a href="index2.html" target="_blank">Docs4dev</a></p>
</div>
</div>
</div>
<div class="box__issues">
</div>
</footer>
</div>
</div>
</div>
</div>
</div>
<script src="static/js/DocumentToggle.js"></script>
<script>
  var hasToc = true;
  /*  var downloadable = /!*false*!/ false;
    var editable = /!*false*!/ false;
    var code = /!*"spring-batch"*!/ false;
    var version = /!*"4.1.x"*!/ false;
    var type = /!*"reference"*!/ false;
    var lang = /!*"en"*!/ 'en';
    //edit link
    require(["gitbook", "jQuery"], function (gitbook, $) {
      gitbook.events.bind('start', function (e, config) {
        // Add edit toolbar to left
        var chapterId = /!*16350*!/ 0;
        if (downloadable) {
          gitbook.toolbar.createButton({
            icon: 'fa fa-download',
            text: '下载',
            onClick: function () {
              window.open('/download?code=' + code + '&version=' + version + '&type=' + type + '&lang=' + lang);
            }
          });
        }
        if (editable) {
          gitbook.toolbar.createButton({
            icon: 'fa fa-edit',
            text: '编辑此页',
            onClick: function () {
              window.open('/docs/edit?chapterId=' + chapterId + '&lang=' + lang);
            }
          });
        }
      });
    });*/
</script>
<script>
    var code = "spring-batch";
    var lang = "en";
  </script>

<script src="static/js/autocomplete-js.js"></script>
<script src="static/js/app.min.js"></script>
<script src="static/js/search.min.js"></script>
</body>
</html>
